rom selenium import webdriver

options = webdriver.ChromeOptions()

# 本地驱动路径
mypath = 'xxxxx/chromedriver'

options.add_argument('--proxy-server=http://ng001.weimiaocloud.com:9003')  
browser = webdriver.Chrome(executable_path=mypath,options=options)
url = 'http://httpbin.org/ip'
browser.get(url)